/////////////////////////////////////////////////////////////////////////
//
// Amuse Engine SDK - core/threads
// Copyright (c) 2014.  All Rights Reserved
//
// File:		AEScopedLock.h
// Author:		Gianluca Belardelli
// Date:		12/03/2014
//
/////////////////////////////////////////////////////////////////////////
#ifndef _AESCOPEDLOCK_H_
#define _AESCOPEDLOCK_H_

class AE_COREDLLIMPEXP AEScopedLock
{
// Members
	AE_DECLARE_NON_COPYABLE( AEScopedLock );

protected:
	AECriticalSection	&m_csSection;

// Methods
public:
	AEScopedLock( AECriticalSection &csSection );
	~AEScopedLock( void );
};

#endif // _AESCOPEDLOCK_H_
